package com.lehecai.core.search.entity.lottery;

import java.util.Date;

import com.lehecai.core.api.lottery.PlanOrder;
import com.lehecai.core.lottery.*;
import com.lehecai.core.search.type.SearchEntityKey;
import com.lehecai.core.search.entity.AbstractSearchEntity;

/**
 * @author hanwenda
 * 搜索服务订单实体
 */
public class PlanOrderSearch extends AbstractSearchEntity<PlanOrder> {

	private static final long serialVersionUID = -1930655490234938850L;

    private String id;			//订单编号
    private String planId;		//订单所属方案编号

    private Long uid;

    private Date createdTime;		//订单创建时间

    private PlanOrderStatus orderStatus;	//订单状态

    private Double amount;				//订单金额

    private Double posttaxPrize;	//税后奖金
    private PrizeStatus prizeStatus;	//派奖状态
    private Date prizeTime;			//派奖时间

    private PlanOrderType orderType;	//订单类型
    private LotteryType lotteryType;
    private String phase;

    private Long sourceId;			//渠道号
    private PlatformType platformType; //平台

	@Override
	public SearchEntityKey getEntityKey()
	{
		return SearchEntityKey.LOTTERY_ORDER;
	}

    @Override
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPlanId() {
        return planId;
    }

    public void setPlanId(String planId) {
        this.planId = planId;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public PlanOrderStatus getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(PlanOrderStatus orderStatus) {
        this.orderStatus = orderStatus;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getPosttaxPrize() {
        return posttaxPrize;
    }

    public void setPosttaxPrize(Double posttaxPrize) {
        this.posttaxPrize = posttaxPrize;
    }

    public PrizeStatus getPrizeStatus() {
        return prizeStatus;
    }

    public void setPrizeStatus(PrizeStatus prizeStatus) {
        this.prizeStatus = prizeStatus;
    }

    public Date getPrizeTime() {
        return prizeTime;
    }

    public void setPrizeTime(Date prizeTime) {
        this.prizeTime = prizeTime;
    }

    public PlanOrderType getOrderType() {
        return orderType;
    }

    public void setOrderType(PlanOrderType orderType) {
        this.orderType = orderType;
    }

    public LotteryType getLotteryType() {
        return lotteryType;
    }

    public void setLotteryType(LotteryType lotteryType) {
        this.lotteryType = lotteryType;
    }

    public String getPhase() {
        return phase;
    }

    public void setPhase(String phase) {
        this.phase = phase;
    }

    public Long getSourceId() {
        return sourceId;
    }

    public void setSourceId(Long sourceId) {
        this.sourceId = sourceId;
    }

    public PlatformType getPlatformType() {
        return platformType;
    }

    public void setPlatformType(PlatformType platformType) {
        this.platformType = platformType;
    }
}
